package sv.gob.mh.dgii.service.terceros;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import sv.gob.mh.dgii.dao.hibernate.Dao;
import sv.gob.mh.dgii.dao.terceros.DeTerceroDao;
import sv.gob.mh.dgii.model.DeTercero;
import sv.gob.mh.dgii.service.BaseService;

@Service
@Transactional
public class DeTerceroServiceImpl extends BaseService implements DeTerceroService {

    @Autowired
    private DeTerceroDao DeTerceroDao;

    @Override
    public Dao getDao() {
        return DeTerceroDao; 
	} 

    @Override
    public List<DeTercero> getDeTercero(String nit) {
        return DeTerceroDao.getDeTercero(nit);
    }
}